.class public Lcom/netease/newsreader/activity/MyReplyActivity;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "MyReplyActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Landroid/view/View$OnClickListener;
.implements Lcom/netease/newsreader/activity/MyCommentsActivity$OnTabSelectedListener;
.implements Landroid/view/View$OnTouchListener;
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/netease/newsreader/activity/BaseActivity;",
        "Landroid/widget/AdapterView$OnItemClickListener;",
        "Landroid/view/View$OnClickListener;",
        "Lcom/netease/newsreader/activity/MyCommentsActivity$OnTabSelectedListener;",
        "Landroid/view/View$OnTouchListener;",
        "Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;"
    }
.end annotation


# static fields
.field private static final LOADING_ITEM_NUM:I = 0xa

.field private static final MSG_LOADING_MYCOMMENT:I = 0x0

.field private static final MSG_LOADING_MYCOMMENT_MORE:I = 0x1


# instance fields
.field private mAccount:Ljava/lang/String;

.field private mHandler:Landroid/os/Handler;

.field private mListView:Lcom/netease/newsreader/view/LoadingListView;

.field private mMyComment:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

.field private mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

.field private mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

.field private mToolPopupX:I

.field private mToolPopupY:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 40
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    .line 148
    new-instance v0, Lcom/netease/newsreader/activity/MyReplyActivity$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/MyReplyActivity$1;-><init>(Lcom/netease/newsreader/activity/MyReplyActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mHandler:Landroid/os/Handler;

    .line 40
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/MyReplyActivity;Ljava/util/Map;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 226
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/MyReplyActivity;->handleMyComment(Ljava/util/Map;)V

    return-void
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/MyReplyActivity;Ljava/util/Map;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 258
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/MyReplyActivity;->handleMyCommentMore(Ljava/util/Map;)V

    return-void
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/MyReplyActivity;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mAccount:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/netease/newsreader/activity/MyReplyActivity;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 148
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$4(Lcom/netease/newsreader/activity/MyReplyActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 112
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->onLoginChanged()V

    return-void
.end method

.method static synthetic access$5(Lcom/netease/newsreader/activity/MyReplyActivity;)Lcom/netease/newsreader/adapter/CommentAdapter;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    return-object v0
.end method

.method private applyLoadingListView(Lcom/netease/newsreader/view/LoadingListView;)V
    .locals 3
    .parameter "loadingListView"

    .prologue
    .line 434
    if-nez p1, :cond_1

    .line 449
    :cond_0
    :goto_0
    return-void

    .line 437
    :cond_1
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 439
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    invoke-virtual {p1}, Lcom/netease/newsreader/view/LoadingListView;->getListView()Landroid/widget/ListView;

    move-result-object v1

    if-eqz v1, :cond_2

    .line 440
    invoke-virtual {p1}, Lcom/netease/newsreader/view/LoadingListView;->getListView()Landroid/widget/ListView;

    move-result-object v1

    .line 441
    const v2, 0x7f020070

    .line 440
    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setListViewDivider(Landroid/content/Context;Landroid/widget/ListView;I)V

    .line 443
    :cond_2
    invoke-virtual {p1}, Lcom/netease/newsreader/view/LoadingListView;->getLoadingMoreView()Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 444
    invoke-virtual {p1}, Lcom/netease/newsreader/view/LoadingListView;->getLoadingMoreView()Landroid/view/View;

    move-result-object v1

    .line 445
    const v2, 0x7f020086

    .line 444
    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 446
    invoke-virtual {p1}, Lcom/netease/newsreader/view/LoadingListView;->getLoadingMoreView()Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 447
    const v2, 0x7f080027

    .line 446
    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    goto :goto_0
.end method

.method private dispatchToolPopupClick(I)Z
    .locals 14
    .parameter "id"

    .prologue
    const/4 v12, 0x0

    const/4 v13, 0x1

    .line 339
    const/4 v6, 0x1

    .line 340
    .local v6, ret:Z
    sparse-switch p1, :sswitch_data_0

    .line 416
    const/4 v6, 0x0

    .line 419
    :cond_0
    :goto_0
    :sswitch_0
    if-eqz v6, :cond_1

    .line 420
    iget-object v11, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v11}, Lcom/netease/newsreader/view/CommentToolsPopup;->dismiss()V

    :cond_1
    move v7, v6

    .line 422
    .end local v6           #ret:Z
    .local v7, ret:I
    :goto_1
    return v7

    .line 342
    .end local v7           #ret:I
    .restart local v6       #ret:Z
    :sswitch_1
    iget-object v11, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v11}, Lcom/netease/newsreader/view/CommentToolsPopup;->getTag()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    .line 343
    .local v5, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v11, "bd"

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v5, Ljava/util/Map;

    .line 344
    .restart local v5       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {v5}, Ljava/util/Map;->size()I

    move-result v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v11

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v5, Ljava/util/Map;

    .line 345
    .restart local v5       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz v5, :cond_0

    .line 346
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->getTitle()Ljava/lang/CharSequence;

    move-result-object v11

    invoke-interface {v11}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {p0, v11, v5}, Lcom/netease/newsreader/util/ShareUtil;->showShareDialog(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    goto :goto_0

    .line 353
    .end local v5           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :sswitch_2
    iget-object v11, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v11}, Lcom/netease/newsreader/view/CommentToolsPopup;->getTag()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    .line 354
    .restart local v5       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v11, "bd"

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v5, Ljava/util/Map;

    .line 356
    .restart local v5       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz v5, :cond_2

    invoke-interface {v5}, Ljava/util/Map;->size()I

    move-result v11

    if-nez v11, :cond_3

    :cond_2
    move v7, v6

    .line 357
    .restart local v7       #ret:I
    goto :goto_1

    .line 360
    .end local v7           #ret:I
    :cond_3
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    .line 361
    .local v8, sb:Ljava/lang/StringBuilder;
    const/4 v2, 0x0

    .line 363
    .local v2, i:I
    :goto_2
    add-int/lit8 v11, v2, 0x1

    invoke-static {v11}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v11

    .line 362
    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/Map;

    .line 364
    .local v4, item:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-nez v4, :cond_4

    .line 376
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {p0, v11}, Lcom/netease/newsreader/util/Tools;->copyText(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_0

    .line 367
    :cond_4
    if-lez v2, :cond_5

    .line 368
    const-string v11, "||"

    invoke-virtual {v8, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 370
    :cond_5
    invoke-interface {v5}, Ljava/util/Map;->size()I

    move-result v11

    if-le v11, v13, :cond_6

    .line 371
    add-int/lit8 v11, v2, 0x1

    invoke-virtual {v8, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "\u697c:"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 373
    :cond_6
    const-string v11, "b"

    invoke-static {v4, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    invoke-virtual {v8, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 361
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 380
    .end local v2           #i:I
    .end local v4           #item:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v5           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v8           #sb:Ljava/lang/StringBuilder;
    :sswitch_3
    iget-object v11, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v11}, Lcom/netease/newsreader/view/CommentToolsPopup;->getTag()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    .line 381
    .restart local v5       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v11, "bd"

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v5, Ljava/util/Map;

    .line 382
    .restart local v5       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {v5}, Ljava/util/Map;->size()I

    move-result v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v11

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    .end local v5           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v5, Ljava/util/Map;

    .line 384
    .restart local v5       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v11, "k"

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    .line 385
    .local v10, url:Ljava/lang/String;
    invoke-static {v10}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-eqz v11, :cond_7

    .line 386
    const v11, 0x7f0b00ae

    invoke-static {p0, v11, v12}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v11

    invoke-virtual {v11}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    .line 389
    :cond_7
    invoke-static {v10}, Lcom/netease/newsreader/model/Comment;->validateArticleUrl(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_8

    .line 390
    const-string v11, "pi"

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 391
    .local v1, docid:Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_0

    .line 392
    const-string v11, "_"

    invoke-virtual {v1, v11}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v9

    .line 393
    .local v9, ss:[Ljava/lang/String;
    if-eqz v9, :cond_0

    array-length v11, v9

    if-lez v11, :cond_0

    .line 394
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 395
    .local v0, b:Landroid/os/Bundle;
    const-string v11, "docid"

    aget-object v12, v9, v12

    invoke-virtual {v0, v11, v12}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 396
    const-string v11, "isCollect"

    invoke-virtual {v0, v11, v13}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 397
    const-string v11, "iscomeMyReply"

    invoke-virtual {v0, v11, v13}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 398
    const-string v11, "position"

    const-string v12, "0"

    invoke-virtual {v0, v11, v12}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 399
    const-string v11, "tid"

    const-string v12, "attitude"

    invoke-virtual {v0, v11, v12}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 400
    const-string v11, "url"

    invoke-virtual {v0, v11, v10}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 401
    new-instance v3, Landroid/content/Intent;

    const-class v11, Lcom/netease/newsreader/activity/DetailPage;

    invoke-direct {v3, p0, v11}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 402
    .local v3, intent:Landroid/content/Intent;
    invoke-virtual {v3, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 403
    invoke-virtual {p0, v3}, Lcom/netease/newsreader/activity/MyReplyActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 407
    .end local v0           #b:Landroid/os/Bundle;
    .end local v1           #docid:Ljava/lang/String;
    .end local v3           #intent:Landroid/content/Intent;
    .end local v9           #ss:[Ljava/lang/String;
    :cond_8
    new-instance v3, Landroid/content/Intent;

    const-class v11, Lcom/netease/newsreader/activity/WebViewActivity;

    invoke-direct {v3, p0, v11}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 408
    .restart local v3       #intent:Landroid/content/Intent;
    const-string v11, "url"

    invoke-virtual {v3, v11, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 409
    const-string v12, "title"

    const-string v11, "s"

    invoke-static {v5, v11}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    invoke-virtual {v3, v12, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 410
    invoke-virtual {p0, v3}, Lcom/netease/newsreader/activity/MyReplyActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 340
    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0061 -> :sswitch_1
        0x7f0c0062 -> :sswitch_2
        0x7f0c0063 -> :sswitch_0
        0x7f0c0102 -> :sswitch_3
    .end sparse-switch
.end method

.method private getMyParent()Lcom/netease/newsreader/activity/MyCommentsActivity;
    .locals 1

    .prologue
    .line 285
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/netease/newsreader/activity/MyCommentsActivity;

    return-object v0
.end method

.method private handleMyComment(Ljava/util/Map;)V
    .locals 9
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .local p1, result:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 227
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    invoke-virtual {v3}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v3

    if-ne v3, p0, :cond_0

    .line 228
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    const v6, 0x7f0c0070

    const/16 v7, 0x8

    invoke-virtual {v3, v6, v7}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 231
    :cond_0
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->isLogin()Z

    move-result v3

    if-nez v3, :cond_2

    .line 256
    :cond_1
    :goto_0
    return-void

    .line 235
    :cond_2
    if-eqz p1, :cond_3

    .line 236
    const-string v3, "0"

    const-string v6, "success"

    invoke-static {p1, v6}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    .line 237
    :cond_3
    const-string v3, "error"

    invoke-static {p1, v3}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 238
    .local v0, errStr:Ljava/lang/String;
    invoke-static {p0, v0, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 239
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3, v5, v4}, Lcom/netease/newsreader/view/LoadingListView;->completeLoading(ZZ)V

    .line 252
    .end local v0           #errStr:Ljava/lang/String;
    :goto_1
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    if-eqz v3, :cond_1

    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    invoke-virtual {v3}, Lcom/netease/newsreader/adapter/CommentAdapter;->getCount()I

    move-result v3

    if-lez v3, :cond_1

    .line 253
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    invoke-virtual {v3, v5}, Lcom/netease/newsreader/adapter/CommentAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map;

    .line 254
    .local v2, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-object v4, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    const-string v3, "fn"

    invoke-static {v2, v3}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v4, v3}, Lcom/netease/newsreader/activity/MyCommentsActivity;->updateTitle(Ljava/lang/String;)V

    goto :goto_0

    .line 241
    .end local v2           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_4
    iput-object p1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyComment:Ljava/util/Map;

    .line 243
    const-string v3, "sList"

    .line 242
    invoke-static {p1, v3}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    .line 244
    .local v1, list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    new-instance v6, Lcom/netease/newsreader/adapter/CommentAdapter;

    .line 245
    if-nez v1, :cond_5

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    :goto_2
    invoke-direct {v6, p0, v3}, Lcom/netease/newsreader/adapter/CommentAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    .line 244
    iput-object v6, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    .line 246
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    iget-object v6, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    invoke-virtual {v6}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v6

    .line 247
    const-string v7, "currentSizeId"

    const/4 v8, 0x2

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    .line 246
    invoke-static {v6}, Lcom/netease/newsreader/activity/DetailPage;->getTextSize(I)F

    move-result v6

    invoke-virtual {v3, v6}, Lcom/netease/newsreader/adapter/CommentAdapter;->setTextSize(F)V

    .line 248
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3}, Lcom/netease/newsreader/view/LoadingListView;->getListView()Landroid/widget/ListView;

    move-result-object v3

    iget-object v6, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    invoke-virtual {v3, v6}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 249
    iget-object v6, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    if-eqz v1, :cond_6

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v3

    const/16 v7, 0xa

    if-ne v3, v7, :cond_6

    move v3, v4

    :goto_3
    invoke-virtual {v6, v4, v3}, Lcom/netease/newsreader/view/LoadingListView;->completeLoading(ZZ)V

    goto :goto_1

    :cond_5
    move-object v3, v1

    .line 245
    goto :goto_2

    :cond_6
    move v3, v5

    .line 249
    goto :goto_3
.end method

.method private handleMyCommentMore(Ljava/util/Map;)V
    .locals 8
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .local p1, result:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 259
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    invoke-virtual {v3}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v3

    if-ne v3, p0, :cond_0

    .line 260
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    const v6, 0x7f0c0070

    const/16 v7, 0x8

    invoke-virtual {v3, v6, v7}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 262
    :cond_0
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3}, Lcom/netease/newsreader/view/LoadingListView;->getLoadingMoreView()Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/Button;

    const v6, 0x7f0b001a

    invoke-virtual {v3, v6}, Landroid/widget/Button;->setText(I)V

    .line 264
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->isLogin()Z

    move-result v3

    if-nez v3, :cond_1

    .line 282
    :goto_0
    return-void

    .line 267
    :cond_1
    if-eqz p1, :cond_2

    .line 268
    const-string v3, "0"

    const-string v6, "success"

    invoke-static {p1, v6}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 269
    :cond_2
    const-string v3, "error"

    invoke-static {p1, v3}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 270
    .local v0, errStr:Ljava/lang/String;
    invoke-static {p0, v0, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 271
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3, v5, v4}, Lcom/netease/newsreader/view/LoadingListView;->completeLoadingMore(ZZ)V

    goto :goto_0

    .line 274
    .end local v0           #errStr:Ljava/lang/String;
    :cond_3
    const-string v3, "sList"

    .line 273
    invoke-static {p1, v3}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    .line 275
    .local v1, list:Ljava/util/List;,"Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    if-eqz v1, :cond_4

    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    if-eqz v3, :cond_4

    .line 276
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-nez v6, :cond_5

    .line 280
    :cond_4
    iget-object v6, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    if-eqz v1, :cond_6

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v3

    const/16 v7, 0xa

    if-ne v3, v7, :cond_6

    move v3, v4

    :goto_2
    invoke-virtual {v6, v4, v3}, Lcom/netease/newsreader/view/LoadingListView;->completeLoadingMore(ZZ)V

    goto :goto_0

    .line 276
    :cond_5
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map;

    .line 277
    .local v2, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-object v6, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    invoke-virtual {v6, v2}, Lcom/netease/newsreader/adapter/CommentAdapter;->add(Ljava/lang/Object;)V

    goto :goto_1

    .end local v2           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_6
    move v3, v5

    .line 280
    goto :goto_2
.end method

.method private init()V
    .locals 5

    .prologue
    .line 76
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 77
    .local v0, inflate:Landroid/view/LayoutInflater;
    const v3, 0x7f0c00cb

    invoke-virtual {p0, v3}, Lcom/netease/newsreader/activity/MyReplyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/netease/newsreader/view/LoadingListView;

    iput-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    .line 78
    const v3, 0x7f03003b

    const/4 v4, 0x0

    invoke-virtual {v0, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 79
    .local v2, view:Landroid/view/View;
    const v3, 0x7f0c00f5

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 80
    .local v1, more:Landroid/widget/Button;
    const v3, 0x7f0b001a

    invoke-virtual {v1, v3}, Landroid/widget/Button;->setText(I)V

    .line 81
    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 82
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3, v1}, Lcom/netease/newsreader/view/LoadingListView;->setLoadingMoreView(Landroid/view/View;)V

    .line 83
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3}, Lcom/netease/newsreader/view/LoadingListView;->getListView()Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 84
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3}, Lcom/netease/newsreader/view/LoadingListView;->getListView()Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, p0}, Landroid/widget/ListView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 85
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v3}, Lcom/netease/newsreader/view/LoadingListView;->getListView()Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 88
    new-instance v3, Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-direct {v3, p0}, Lcom/netease/newsreader/view/CommentToolsPopup;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    .line 89
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    const v4, 0x7f030042

    invoke-virtual {v3, v4}, Lcom/netease/newsreader/view/CommentToolsPopup;->setContentView(I)V

    .line 90
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    const/4 v4, 0x4

    new-array v4, v4, [I

    fill-array-data v4, :array_0

    invoke-virtual {v3, p0, v4}, Lcom/netease/newsreader/view/CommentToolsPopup;->setOnClickListener(Landroid/view/View$OnClickListener;[I)V

    .line 93
    return-void

    .line 90
    :array_0
    .array-data 0x4
        0x61t 0x0t 0xct 0x7ft
        0x63t 0x0t 0xct 0x7ft
        0x62t 0x0t 0xct 0x7ft
        0x2t 0x1t 0xct 0x7ft
    .end array-data
.end method

.method private isLogin()Z
    .locals 1

    .prologue
    .line 105
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mAccount:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private isLoginChanged()Z
    .locals 2

    .prologue
    .line 109
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    invoke-virtual {v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getAccount()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mAccount:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private onLoginChanged()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 113
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    invoke-virtual {v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getAccount()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mAccount:Ljava/lang/String;

    .line 114
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->isLogin()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 115
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->startLoading()V

    .line 121
    :goto_0
    return-void

    .line 117
    :cond_0
    iput-object v1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyComment:Ljava/util/Map;

    .line 118
    iput-object v1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    .line 119
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v0}, Lcom/netease/newsreader/view/LoadingListView;->reset()V

    goto :goto_0
.end method

.method private startLoadingMore()V
    .locals 5

    .prologue
    .line 167
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->isLogin()Z

    move-result v2

    if-nez v2, :cond_1

    .line 195
    :cond_0
    :goto_0
    return-void

    .line 170
    :cond_1
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v2}, Lcom/netease/newsreader/view/LoadingListView;->inLoading()Z

    move-result v2

    if-nez v2, :cond_0

    .line 173
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    const v3, 0x7f0c0070

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 174
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v2}, Lcom/netease/newsreader/view/LoadingListView;->getLoadingMoreView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    const v3, 0x7f0b001b

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(I)V

    .line 175
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mAccount:Ljava/lang/String;

    .line 177
    .local v0, account:Ljava/lang/String;
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v2}, Lcom/netease/newsreader/view/LoadingListView;->getPage()I

    move-result v2

    add-int/lit8 v1, v2, 0x1

    .line 178
    .local v1, page:I
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v2, v1}, Lcom/netease/newsreader/view/LoadingListView;->startLoadingMore(I)V

    .line 179
    new-instance v2, Ljava/lang/Thread;

    new-instance v3, Lcom/netease/newsreader/activity/MyReplyActivity$2;

    invoke-direct {v3, p0, v0, v1}, Lcom/netease/newsreader/activity/MyReplyActivity$2;-><init>(Lcom/netease/newsreader/activity/MyReplyActivity;Ljava/lang/String;I)V

    invoke-direct {v2, v3}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 193
    invoke-virtual {v2}, Ljava/lang/Thread;->start()V

    goto :goto_0
.end method


# virtual methods
.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 1
    .parameter "event"

    .prologue
    .line 125
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v0, p1}, Lcom/netease/newsreader/view/CommentToolsPopup;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 126
    const/4 v0, 0x1

    .line 129
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onApplyTheme()V
    .locals 2

    .prologue
    .line 427
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 428
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 429
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    iget-object v1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-direct {p0, v1}, Lcom/netease/newsreader/activity/MyReplyActivity;->applyLoadingListView(Lcom/netease/newsreader/view/LoadingListView;)V

    .line 431
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2
    .parameter "v"

    .prologue
    .line 323
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    .line 324
    .local v0, id:I
    iget-object v1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v1}, Lcom/netease/newsreader/view/CommentToolsPopup;->isShowing()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-direct {p0, v0}, Lcom/netease/newsreader/activity/MyReplyActivity;->dispatchToolPopupClick(I)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 336
    :goto_0
    return-void

    .line 328
    :cond_0
    packed-switch v0, :pswitch_data_0

    goto :goto_0

    .line 330
    :pswitch_0
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->startLoadingMore()V

    goto :goto_0

    .line 328
    nop

    :pswitch_data_0
    .packed-switch 0x7f0c00f5
        :pswitch_0
    .end packed-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 1
    .parameter "savedInstanceState"

    .prologue
    .line 66
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 67
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/MyReplyActivity;->requestWindowFeature(I)Z

    .line 69
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->getMyParent()Lcom/netease/newsreader/activity/MyCommentsActivity;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    .line 70
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    invoke-virtual {v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0, p0}, Landroid/content/SharedPreferences;->registerOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    .line 71
    const v0, 0x7f030034

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/MyReplyActivity;->setContentView(I)V

    .line 72
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->init()V

    .line 73
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 134
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onDestroy()V

    .line 135
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    invoke-virtual {v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0, p0}, Landroid/content/SharedPreferences;->unregisterOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    .line 136
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v0}, Lcom/netease/newsreader/view/CommentToolsPopup;->dismiss()V

    .line 137
    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 8
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "itemId"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .local p1, adapterView:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    const v5, 0x7f0c0102

    .line 300
    invoke-virtual {p1, p3}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v2

    .line 301
    .local v2, tag:Ljava/lang/Object;
    if-eqz v2, :cond_0

    move-object v1, v2

    .line 302
    check-cast v1, Ljava/util/Map;

    .line 303
    .local v1, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v4, "bd"

    invoke-static {v1, v4}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    .end local v1           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v1, Ljava/util/Map;

    .line 304
    .restart local v1       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {v1}, Ljava/util/Map;->size()I

    move-result v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-static {v1, v4}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    .end local v1           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v1, Ljava/util/Map;

    .line 306
    .restart local v1       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v4, "k"

    invoke-static {v1, v4}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 307
    .local v3, url:Ljava/lang/String;
    invoke-static {v3}, Lcom/netease/newsreader/model/Comment;->validateArticleUrl(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 308
    iget-object v4, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v4}, Lcom/netease/newsreader/view/CommentToolsPopup;->getContentView()Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V

    .line 312
    :goto_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v4, v2}, Lcom/netease/newsreader/view/CommentToolsPopup;->setTag(Ljava/lang/Object;)V

    .line 313
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v4

    iget v4, v4, Landroid/util/DisplayMetrics;->density:F

    const/high16 v5, 0x425c

    mul-float/2addr v4, v5

    float-to-int v0, v4

    .line 314
    .local v0, height:I
    iget-object v4, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    iget v5, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopupX:I

    iget v6, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopupY:I

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getHeight()I

    move-result v7

    sub-int/2addr v6, v7

    sub-int/2addr v6, v0

    invoke-virtual {v4, p1, v5, v6}, Lcom/netease/newsreader/view/CommentToolsPopup;->showAsDropDown(Landroid/view/View;II)V

    .line 319
    .end local v0           #height:I
    .end local v1           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v3           #url:Ljava/lang/String;
    :cond_0
    return-void

    .line 310
    .restart local v1       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v3       #url:Ljava/lang/String;
    :cond_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopup:Lcom/netease/newsreader/view/CommentToolsPopup;

    invoke-virtual {v4}, Lcom/netease/newsreader/view/CommentToolsPopup;->getContentView()Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    const/16 v5, 0x8

    invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method protected onResume()V
    .locals 1

    .prologue
    .line 97
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onResume()V

    .line 99
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->isLoginChanged()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 100
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->onLoginChanged()V

    .line 102
    :cond_0
    return-void
.end method

.method public onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .locals 2
    .parameter "sharedPreferences"
    .parameter "key"

    .prologue
    .line 453
    const-string v0, "account"

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 454
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->isLoginChanged()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 455
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/netease/newsreader/activity/MyReplyActivity$4;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/MyReplyActivity$4;-><init>(Lcom/netease/newsreader/activity/MyReplyActivity;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 473
    :cond_0
    :goto_0
    return-void

    .line 461
    :cond_1
    const-string v0, "currentSizeId"

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 462
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    if-eqz v0, :cond_0

    .line 463
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/netease/newsreader/activity/MyReplyActivity$5;

    invoke-direct {v1, p0, p1, p2}, Lcom/netease/newsreader/activity/MyReplyActivity$5;-><init>(Lcom/netease/newsreader/activity/MyReplyActivity;Landroid/content/SharedPreferences;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_0
.end method

.method public onTabSlected()V
    .locals 3

    .prologue
    .line 141
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    if-eqz v0, :cond_0

    .line 142
    iget-object v1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    const v2, 0x7f0c0070

    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v0}, Lcom/netease/newsreader/view/LoadingListView;->inLoading()Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1, v2, v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 146
    :cond_0
    return-void

    .line 143
    :cond_1
    const/16 v0, 0x8

    goto :goto_0
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 2
    .parameter "v"
    .parameter "event"

    .prologue
    .line 291
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 292
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopupX:I

    .line 293
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mToolPopupY:I

    .line 295
    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public startLoading()V
    .locals 4

    .prologue
    const/4 v1, 0x0

    .line 198
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyReplyActivity;->isLogin()Z

    move-result v2

    if-nez v2, :cond_1

    .line 224
    :cond_0
    :goto_0
    return-void

    .line 201
    :cond_1
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    invoke-virtual {v2}, Lcom/netease/newsreader/view/LoadingListView;->inLoading()Z

    move-result v2

    if-nez v2, :cond_0

    .line 205
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mParent:Lcom/netease/newsreader/activity/MyCommentsActivity;

    const v3, 0x7f0c0070

    invoke-virtual {v2, v3, v1}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 206
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mAccount:Ljava/lang/String;

    .line 207
    .local v0, account:Ljava/lang/String;
    iget-object v2, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mListView:Lcom/netease/newsreader/view/LoadingListView;

    iget-object v3, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyCommentAdapter:Lcom/netease/newsreader/adapter/CommentAdapter;

    if-nez v3, :cond_2

    const/4 v1, 0x1

    :cond_2
    invoke-virtual {v2, v1}, Lcom/netease/newsreader/view/LoadingListView;->startLoading(Z)V

    .line 208
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/netease/newsreader/activity/MyReplyActivity;->mMyComment:Ljava/util/Map;

    .line 209
    new-instance v1, Ljava/lang/Thread;

    new-instance v2, Lcom/netease/newsreader/activity/MyReplyActivity$3;

    invoke-direct {v2, p0, v0}, Lcom/netease/newsreader/activity/MyReplyActivity$3;-><init>(Lcom/netease/newsreader/activity/MyReplyActivity;Ljava/lang/String;)V

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 223
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    goto :goto_0
.end method
